<!-- 头部 -->
<include file="Public:header" />

<link href="__PUBLIC__/home/css/sishu_teacher_base.css" rel="stylesheet" type="text/css" media="screen">
<link href="__PUBLIC__/home/css/sishuteachernew.css" rel="stylesheet" type="text/css" media="screen">
<link rel="stylesheet" type="text/css" media="screen" href="__PUBLIC__/home/css/bootstrap-datetimepicker.css">
<script src="__PUBLIC__/home/js/analytics.js" async></script>
<script type="text/javascript" src="__PUBLIC__/home/js/jquery.js"></script>
<script type="text/javascript" src="__PUBLIC__/home/js/swfobject.js"></script>
<link href="__PUBLIC__/home/css/header2_9.css" rel="stylesheet" type="text/css"media="all">
<script src="__PUBLIC__/home/js/sishu_parent_common.js" type="text/javascript"></script>
<style media="screen" type="text/css">
    #divFlash_e {visibility:hidden}#divFlash_t {visibility:hidden}#divFlashio
    {visibility:hidden}#divFlash {visibility:hidden}#divFlashkp {visibility:hidden}
</style>
<style type="text/css">
    .loading{display:none;/*background:url("http://f7-preview.awardspace.com/zjmainstay.co.cc/jQueryExample/jquery_upload_image/files/ui-anim_basic_16x16.gif")
    no-repeat scroll 0 0 transparent;*/float: left;padding:8px;margin:18px 0
    0 18px;} .btn{ background: #f90 !important; } .shangchuanpic{ width: 100px;
    height: 30px; background-color: #f90; border-radius: 5px; color: #fff !important;
    line-height: 30px; text-align: center; display: block; /*margin: 10px auto;*/
    position: relative; overflow: hidden; } .shangchuanpic input{ width: 100px;
    height: 30px; filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0);
    } .picwrap{ width: 100%; height: 290px; display: inline-block; } .desc-F60{
    font-weight: normal; }
</style>

            <div class="mian_nav">
                <div class="mycenter">
                    <!-- <h2 class="navDown">全部课程分类</h2> -->
                    <!-- -->
                    <div class="nav_box">
                        <ul>
    <li class="home"><a href="{:U('index/index',array('newcity'=>$city))}" target="_self">首页</a></li>
    <li><a href="{:U('index/jiazhang_zn',array('newcity'=>$city))}" target="_self">学员指南</a></li>
    <li><a href="{:U('index/laoshi_zn',array('newcity'=>$city))}" target="_self">老师指南</a></li>
    <li><a href="{:U('index/about',array('newcity'=>$city))}" target="_self">关于平台</a></li>
                        </ul>
                        <div class="nav-line" style="left:92px;width:64px;">
                        </div>
                    </div>

                </div>
            </div>
        </div>
        <div class="auto1200 cLr container mt30" style="z-index:1;">
            <div style="height: 976px;" class="nav-a-settings" id="navconfig">
                <ul style="top: 0px;">
                    <li data-nav="showI1">
                        <a href="{:U('laoshi/zlrz',array('newcity'=>$city))}" >
                            <span class="sp2">
                                &nbsp;
                            </span>
                            资料认证
                        </a>
                    </li>
                    <li data-nav="showI2">
                        <a href="{:U('laoshi/zlrz_head',array('newcity'=>$city))}" >
                            <span class="sp3">
                                &nbsp;
                            </span>
                            头像
                        </a>
                    </li>
                    <li data-nav="showI3">
                        <a href="{:U('laoshi/introduce',array('newcity'=>$city))}" class="active">
                            <span class="sp4">
                                &nbsp;
                            </span>
                            自我介绍
                        </a>
                    </li>
                    <li data-nav="showI4">
                        <a href="{:U('laoshi/teaching',array('newcity'=>$city))}">
                            <span class="sp5">
                                &nbsp;
                            </span>
                            授课信息
                        </a>
                    </li>
                    <li data-nav="showI0">
                        <a href="{:U('laoshi/zhanghao',array('newcity'=>$city))}">
                            <span class="sp1">
                                &nbsp;
                            </span>
                            账号及密码
                        </a>
                    </li>
                    <li data-nav="showI0">
                        <a href="{:U('laoshi/bank',array('newcity'=>$city))}">
                            <span class="sp6">
                                &nbsp;
                            </span>
                            绑定银行卡
                        </a>
                    </li>
                </ul>
                <div style="height: 573px; display: block;" class="nav-intro fn-hide" id="zwjsnav">
                    <ul>
                <li style="background-color: rgb(228, 228, 228);"><a href="{:U('laoshi/introduce',array('newcity'=>$city))}" id="aN0" class="navA">教龄/经历<em class="red">(必填)</em></a></li>
                <li style="background-color: rgb(228, 228, 228);"><a href="{:U('laoshi/describe',array('newcity'=>$city))}" id="aN5" class="navA">自我描述<em class="red">(必填)</em></a></li>
                <li style="background-color: rgb(228, 228, 228);"><a href="{:U('laoshi/keyword',array('newcity'=>$city))}" id="aN2" class="navA">我的关键词<em class="red">(必填)</em></a></li>
                <li style="background-color: rgb(255, 255, 255);"><a href="{:U('laoshi/sussess_case',array('newcity'=>$city))}" id="aN3" class="navA">成功案例<em class="red">(必填)</em></a></li>
                <li style="background-color: rgb(228, 228, 228);"><a href="{:U('laoshi/school',array('newcity'=>$city))}" id="aN4" class="navA nostar pl24">学历院校</a></li>
                    </ul>
                </div>

            </div>



<div style="overflow: hidden; display: block;" class="content-a-settings po-re zwjs"
id="CoF3">
    <div class="lrem x-u" id="tabn0" style="display: block;">
    <form class="layui-form" method="post">
        <div class="o0o cLr editing rTy">
            <span class="title-o0o nojs">
                <label class="star" style="color: rgb(0, 0, 0); width: 128px;">
                    成功案例：
                    <em style="color:red">
                        (必填：可以添加多个案例,该页面会展示最新案例)
                    </em>
                </label>
            </span>
        </div>
        <div class="liYu">
            <div class="o0o cLr editing timeact" style="overflow:visible; border-bottom:0">
                <span class="title-o0o skkm">
                    <label class="star" style="width: 128px;">
                        时间：
                    </label>
                </span>
                <div class="T-subject downlist-subject112">                    
                    <select name="year" required lay-verify="required" style="width:135px">
                        <option value="{$success_case.time_year}" selected=""> {$success_case.time_year} 年</option>
                        <option value="1980">1980年</option><option value="1981">1981年</option>
                        <option value="1982">1982年</option><option value="1983">1983年</option>
                        <option value="1984">1986年</option><option value="1985">1985年</option>
                        <option value="1986">1986年</option><option value="1987">1987年</option>
                        <option value="1988">1988年</option><option value="1989">1989年</option>
                        <option value="1990">1990年</option><option value="1991">1991年</option>
                        <option value="1992">1992年</option><option value="1993">1993年</option>
                        <option value="1994">1994年</option><option value="1995">1995年</option>
                        <option value="1996">1996年</option><option value="1997">1997年</option>
                        <option value="1998">1998年</option><option value="1999">1999年</option>
                        <option value="2000">2000年</option><option value="2001">2001年</option>
                        <option value="2002">2002年</option><option value="2003">2003年</option>
                        <option value="2004">2004年</option><option value="2005">2005年</option>
                        <option value="2006">2006年</option><option value="2007">2007年</option>
                        <option value="2008">2008年</option><option value="2009">2009年</option>
                        <option value="2010">2010年</option><option value="2011">2011年</option>
                        <option value="2012">2012年</option><option value="2013">2013年</option>
                        <option value="2014">2014年</option><option value="2015">2015年</option>
                        <option value="2016">2016年</option><option value="2017">2017年</option>
                    </select>
                </div>
                <div class="T-subject downlist-subject113">
                    <div class="T-subject downlist-subject112">                    
                        <select name="month" required lay-verify="required" style="width:135px">
                            <option value="{$success_case.time_month}" selected=""> {$success_case.time_month} 月</option>
                            <option value="1">1月</option>
                            <option value="2">2月</option>
                            <option value="3">3月</option>
                            <option value="4">4月</option>
                            <option value="5">5月</option>
                            <option value="6">6月</option>
                            <option value="7">7月</option>
                            <option value="8">8月</option>
                            <option value="9">9月</option>
                            <option value="10">10月</option>
                            <option value="11">11月</option>
                            <option value="12">12月</option>
                        </select>
                    </div>
                </div>
            </div>

            <div class="o0o cLr editing">
                <span class="title-o0o">
                    <label class="star" style="width: 128px;">学生姓名：</label>
                </span>
                <div class="input-tips">
                    <input name="stu_name" value="{$success_case.stu_name}" required lay-verify="required" placeholder="请输入学生姓名" class="pub stuName-dmi" type="text">
                </div>
            </div>
            <div class="o0o cLr editing">
                <span class="title-o0o">
                    <label class="star" style="width: 128px;">学生所在学校：</label>
                </span>
                <div class="input-tips">
                    <input name="stu_addr" value="{$success_case.school}" required lay-verify="required" placeholder="请输入学生所在学校" class="pub stuName-dmi" type="text">
                </div>
            </div>

            <div class="o0o cLr editing overbottom po-re">
                <span class="title-o0o">
                    <label class="star" style="color:#000;width: 128px;">
                        主要成果：
                    </label>
                </span>
                <div class="textareas" style="float:right; width:83%;">
                    <textarea id="L_content" name="content" placeholder="请输入内容" class="layui-textarea fly-editor" style="height: 160px;">
                    {$success_case.result}
                    </textarea>
                    <div style="position:relative; height:38px;">
                        <div class="editing fr-fixbtn">
                            <button class="layui-btn layui-btn-warm" lay-filter="*" lay-submit>添加</button>
                        </div>
                        <p class="tipsfont">
                            字数必须大于10字，最长不得超过1000字&nbsp;
                            <span>
                            </span>
                        </p>
                    </div>
                </div>
            </div>
        </div>
        </form>
    </div>
</div>
</div>
<script>
    layui.use(['form','layer','layedit' ,'laypage', 'element','upload'], function(){
      var layer = layui.layer
      ,laypage = layui.laypage
      ,layedit = layui.layedit
      ,element = layui.element()
      ,upload = layui.upload
      ,form = layui.form();

      layedit.set({
      uploadImage: {
        url: "{:U('laoshi/img')}" //接口url
        ,type: 'post' //默认post
      }
    })    

    //创建一个编辑器
    var editIndex = layedit.build('L_content', {
                  tool: ['strong','italic','underline','del','left', 'center', 'right']
                  });

    //交互
    form.on('submit(*)', function(data){
        data.field.content = layedit.getContent(editIndex);
        console.log(data);
        $.ajax({
            url: "{:U('laoshi/sussess_case_add')}",//请求地址
            type: "post",//请求方式
            dataType: "json",//返回数据类型
            data: data.field,//发送的参数
            })
            .done(function(response) {
                  if(response.error==0){
                     layer.msg(response.info ,{icon:5});
                  }else{
                     layer.alert(response.info ,{icon:6},function(){
                        location.reload();
                     });
                     
                  }
              })
            .fail(function() {
                alert("ajxs交互失败");
            })  
          return false; //阻止表单跳转。如果需要表单跳转，去掉这段即可。
        });  


    });
</script>


</html>